﻿namespace Sustainalytics.ReportGenerator.BL
{
    using System;
    using System.Diagnostics;
    using System.Threading;

    public class LogDebug : ILogPdf
    {
        private static readonly Lazy<LogDebug> Lazy = new Lazy<LogDebug>(
            () => new LogDebug(), 
            LazyThreadSafetyMode.ExecutionAndPublication);

        private LogDebug()
        {
        }

        public static LogDebug Log
        {
            get
            {
                return Lazy.Value;
            }
        }

        public void LogError(string error)
        {
            Debug.WriteLine(error);
        }

        public void LogSuccess(string message)
        {
            Debug.WriteLine("PDF Generation successful");
        }

        public void LogGenerationData(string msg)
        {
            Debug.WriteLine(msg);
        }

        public void LogSummary(string msg)
        {
            Debug.WriteLine(msg);
        }
    }
}